package com.qf.six.ssm.commen.vo;

import lombok.Getter;

/**
 * 业务状态封装枚举类
 * @author ZL
 */
@Getter
public enum ResponseCode {
    SUCCESS(200, "success"),
    ERROR(404, "error"),

    INSERT_ERROR(404, "用户已存在"),
    TEST_ERROR(-1, "测试异常信息"),
    PASSWORD_ERROR(-2,"密码错误"),
    USERNAME_ERROR(-3,"用户名不存在"),
    REGISTER_ERROR(-4,"注册失败"),
    SAVE_USER_ERROR(400001, "保存用户异常");
    private int status;
    private String msg;

    ResponseCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
